<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class CekLogin extends CI_Controller {

    public function __construct() {
        parent::__construct();
        if ($this->session->userdata('log_in')) {
            
            
            //echo 'session id = ' . session_id();
            //print_r($this->session->userdata);
            //print_r($_SESSION);
        } else {
            echo 'no session';
            redirect(base_url() . 'login');
            exit();
        }
    }

    public function index() {
        
    }

}

?>